package com.dferreira.languagesteach.fragments.generic;

import android.support.v4.app.ListFragment;

import com.dferreira.languagesteach.activities.generic.IFragmentStack;


/**
 * Created by dferreira on 5/28/14.
 * for LanguagesTeach
 */
public class NavigationListFragment extends ListFragment {

    private String packageFolder;
    private IFragmentStack fragmentStack;


    /**
     * @param packageFolder Folder where the package was installed.
     * @param fragmentStack Interface to handle the push of new fragments
     */
    public void setArguments(String packageFolder, IFragmentStack fragmentStack) {
        this.packageFolder = packageFolder;
        this.fragmentStack = fragmentStack;
    }

    /**
     *
     * @param fragmentStack
     */
    public void setFragmentStack(IFragmentStack fragmentStack) {
        this.fragmentStack = fragmentStack;
    }

    /**
     * @return Interface to handle the push of new fragments
     */
    protected IFragmentStack getFragmentStack() {
        return fragmentStack;
    }

    /**
     * @return The folder where the package was installed
     */
    public String getPackageFolder() {
        return packageFolder;
    }

    /**
     * Called as part of the activity lifecycle when an activity is going into
     * the background, but has not (yet) been killed.  The counterpart to
     * {@link #onResume}.
     */
    @Override
    public void onPause() {
        super.onPause();

    }


}
